﻿@{
    object tempValue = this.ViewContext.RequestContext.RouteData.DataTokens["area"];
    string currentArea = string.Empty;
    if (tempValue != null)
    {
        currentArea = tempValue.ToString();
    }
    string currentControllerName = this.ViewContext.RequestContext.RouteData.Values["controller"].ToString();
    string resourceName = "eden." + currentControllerName;
}
<!DOCTYPE html>
<html>
<head runat="server">
    <title>
        @RenderSection("TitleContent", required: true)
    </title>
    <link href="@(Url.Content("~/Content/Site.css"))" rel="stylesheet" type="text/css" />
    <link href="@(Url.Content("~/Content/jquery-ui-1.8.19.custom.css"))" rel="stylesheet"
        type="text/css" />
    <link href="@(Url.Content("~/Content/CSS/bluelotus7.Site.css"))" rel="stylesheet"
        type="text/css" />
    <link href="@(Url.Content("~/Content/CSS/bluelotus7.Grid.css"))" rel="stylesheet"
        type="text/css" />
    <link href="@(Url.Content("~/Content/CSS/" + resourceName + ".css"))" rel="stylesheet"
        type="text/css" />
    <script src="@(Url.Content("~/Scripts/jquery-1.7.2.min.js"))" type="text/javascript"></script>
    <script src="@(Url.Content("~/Scripts/jquery-ui-1.8.19.custom.min.js"))" type="text/javascript"></script>
    <script src="@(Url.Content("~/Scripts/jquery.tablesorter.min.js"))" type="text/javascript"></script>
    <script src="@(Url.Content("~/Scripts/bluelotus7.common.js"))" type="text/javascript"></script>
    <script src="@(Url.Content("~/Scripts/bluelotus7.Grid.js"))" type="text/javascript"></script>
    <script src="@(Url.Content("~/Scripts/" + resourceName + ".js"))" type="text/javascript"></script>
    <script src="@(Url.Action("RetrieveAjaxCollection", currentControllerName, new { area = currentArea }))"
        type="text/javascript"></script>
    @RenderSection("ResourceReferences", required: false)
</head>
<body class="bluelotus7-site">
    <div>
        @RenderSection("SideNavigator", required: false)
        @RenderSection("MainContent", required: true)
    </div>
</body>
</html>
